Package lemon :: Package external :: Package Cheetah :: Package Utils :: Package optik :: Module option_parser
[show private | hide private]
[frames | no frames]

Module lemon.external.Cheetah.Utils.optik.option_parser

optik.option_parser

Provides the OptionParser and Values classes.

Cheetah modifications:  added "Cheetah.Utils.optik." prefix to
  all intra-Optik imports.

Classes
OptionParser Class attributes: standard_option_list : [Option] list of standard options that will be accepted by all instances of this parser class (intended to be overridden by subclasses).
Values  

Function Summary
  get_prog_name()
  _match_abbrev(s, words)
_match_abbrev(s : string, words : [string]) -> string Returns the string in 'words' for which 's' is an unambiguous abbreviation.

Variable Summary
str __revision__ = '$Id: option_parser.py,v 1.1 2003/08/12 0...
Option STD_HELP_OPTION = <Cheetah.Utils.optik.option.Option ins...
Option STD_VERSION_OPTION = <Cheetah.Utils.optik.option.Option ...
str SUPPRESS_HELP = 'SUPPRESSHELP'
str SUPPRESS_USAGE = 'SUPPRESSUSAGE'

Function Details

_match_abbrev(s, words)

_match_abbrev(s : string, words : [string]) -> string

Returns the string in 'words' for which 's' is an unambiguous
abbreviation.  If 's' is found to be ambiguous or doesn't match any
of 'words', raises BadOptionError.

Variable Details

__revision__

Type:
str
Value:
'$Id: option_parser.py,v 1.1 2003/08/12 09:17:11 thejimmyg Exp $'      

STD_HELP_OPTION

Type:
Option
Value:
<Cheetah.Utils.optik.option.Option instance at 0x00DEDA08>             

STD_VERSION_OPTION

Type:
Option
Value:
<Cheetah.Utils.optik.option.Option instance at 0x00DED4E0>             

SUPPRESS_HELP

Type:
str
Value:
'SUPPRESSHELP'                                                         

SUPPRESS_USAGE

Type:
str
Value:
'SUPPRESSUSAGE'                                                        

Generated by Epydoc 2.0 on Mon Nov 10 15:08:14 2003 http://epydoc.sf.net